url
field.AddWebhookListener
Method: with required*
fields
url*
(string) — the URL to send the webhook tofilters*
(object) — an object of filters
contractAddresses*
([]string) — an array of any contract addressevents*
([]string)— any contract event, with the included indexed
keyword from the contract when necessary (e.g. Transfer(address indexed from, address indexed to, uint256 amount)
. Shorthand is also acceptable without argument names, which will simply be parsed as: arg1, arg2, etc. i.e. Transfer(address indexed,address indexed,uint256)
without argument names)tokenIDs
([]int) — an array of token IDsaccounts
([]string) — an array of wallet addresses to listen ontopicHashes
([]string) — a hash of the event being listened to (e.g. ethers.id(“Transfer(address indexed from, address indexed to, uint256 amount)”))AddWebhookListener
Where this example listens to all mints of an ERC1155 collectible contract:
id
and projectId
:
Sequence Indexer RemoveWebhookListener
Method: with required*
fields
id*
(string) — the id of the listener returned from AddWebhookListener
(i.e. response.listener.id
)projectId*
(string) — the Project ID the JWT Secret API key was obtained fromRemoveWebhookListener
uid
(string) — a deterministic hash value of the on-chain transaction logtype
(string), — the type of event (i.e. BLOCK_ADDED
)blockNumber
(i32) — the block number from the blockchain for when the event occuredblockHash
(string) — the hash of the block for the transactionparentBlockHash
(i32) — the hash of the parent blockcontractAddress
(string) — the contract address from where the event came fromcontractType
(string) — the type of contract (e.g. ERC20
, ERC721
, ERC1155
, etc.)txnHash
(string) — the transaction hash of the eventtxnIndex
(i32) — the index of the transaction in the blockchain blocktxnLogIndex
(string) — the log index in the transactionts
(date) — an ISO 8601 formatted date and time of the eventevent
(event) — the event data of the on-chain datatxnLogIndex
(string) — the log index in the transactionlogDataType
(string) — the type of log event (e.g. TOKEN_TRANSFER
)rawLog
(raw) — the raw transaction objectField | Type | Description |
---|---|---|
topicHash | string | a hash of the event being listened to (e.g. ethers.id(“Transfer(address indexed from, address indexed to, uint256 amount)“)) |
eventSig | string | the event signature of the on-chain event (e.g. “Transfer(address indexed from, address indexed to, uint256 amount)“) |
types | []string | an array of argument types from the event |
names | []string | an array of event argument names in plain text (note: if names are not included in initial webhook creation, will appear as: arg1, arg2, arg3, etc.) |
values | []string | an array of hex values corresponding to the argument names |
Field | Type | Description |
---|---|---|
data | string | data |
topics | []string | the topic event hashes emitted in the logs |